<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="./css/index.css">
</head>

<body>
    <div class="big">
        <img src="images/logo.jpg" alt="">
        <a href="./add.html">+添加图书</a>
        <table border="1">
            <tr>
                <th>id</th>
                <th>编号</th>
                <th>名称</th>
                <th>作者</th>
                <th>出版社</th>
                <th>价格</th>
                <th>日期</th>
                <th>操作</th>
            </tr>
            {{each list}}
            <tr>
                <td>{{$value.id}}</td>
                <td>{{$value.isbn}}</td>
                <td>{{$value.name}}</td>
                <td>{{$value.author}}</td>
                <td>{{$value.press}}</td>
                <td>{{$value.price}}</td>
                <td>{{$value.pubdate}}</td>
                <td>
                    <a href="http://localhost:3000/book?action=del&id={{$value.id}}">删除</a>
                    <a href="./edit.html?id={{$value.id}}">修改</a>
                </td>
            </tr>
            {{/each}}
        </table>
    </div>
</body>

</html>